package com.abhinav.jaxb.model;

import java.util.HashMap;
import java.util.Map;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.abhinav.jaxb.MapAdapter;

@XmlRootElement
public class CustomerJaxb {
	private Map<String, Address> addressMap = new HashMap<String, Address>();

	@XmlJavaTypeAdapter(MapAdapter.class)
	@XmlElement(name="addresses")
	public Map<String, Address> getAddressMap() {
		return addressMap;
	}

	
	public void setAddressMap(Map<String, Address> addressMap) {
		this.addressMap = addressMap;
	}

}
